<?php
html::printPath(
    array(
        'viRegistration.form-title' => 'admin/viRegistration/all',
        text::get('viRegistration.registration_number', $optionsForm['vi_registration_id']) => 'admin/viRegistration/display?id=' . $optionsForm['vi_registration_id'],
        'application.page-title-edit' => ''
    )
);
$msg->printMessages();

echo form::open('/admin/viRegistration/save');

$formView = new View('/user/viregWizard/fragments/viRegistrationForm');
$formView->set('jsSubmitForm', "return submitFormToUrl(this, '" . url::site('/admin/viRegistration/saveForm') . "')");
$formView->render(true);

$formView = new View('/user/viregWizard/fragments/paymentTypeForm');
$formView->render(true);

echo '<p>' . form::submitButton('save', 'button/save.png') . '</p>';

echo form::close();